package cn.tedu.egweibo06.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Size;

@Data
public class UserRegDTO {
    @ApiModelProperty(value = "昵称", required = true)
    private String nickname;
    @ApiModelProperty(value = "密码", required = true)
    private String password;
    @Size(min = 6, max = 14, message = "用户名长度在6-14之间")
    @ApiModelProperty(value = "用户名", required = true)
    private String username;
}
